<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>login</title>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet"/>
    <script th:src="@{/js/jquery-3.3.1.js}" type="text/javascript"></script>
    <script th:src="@{/js/bootstrap.min.js}" type="text/javascript"></script>

    <style>
        .container{
            margin-top: 10%;
            height: 380px;
            width: 300px;
            border-radius: 5px;
            border:2px solid #DDDDDD;
        }
    </style>
</head>
<body>
<div class="container">
    <div class="row">
        <div class="col-md-12 column text-center">
            <h3 class="text-success">用户登录</h3>
        </div>
    </div>
    <hr/>
    <div class="row clearfix">
        <div class="col-md-12 column">
            <form role="form" action="/user/login">
                <div class="form-group">
                    <label for="exampleInputUserName">用户名：</label>
                    <input type="text" name="userName" class="form-control" id="exampleInputUserName" />
                </div>
                <div class="form-group">
                    <label for="exampleInputPassword1">密码：</label>
                    <input type="password" name="password" class="form-control" id="exampleInputPassword1" />
                </div>
                <div class="form-group">
                    <label>角色：</label>
                    <input type="radio" name="type" value="1" checked> 普通用户
                    <input type="radio" name="type" value="2"> 管理员
                </div>
                <div class="form-group">
                    <span class="text-danger" th:text="${msg}"> </span>
                </div>
                <hr/>
                <div class="form-group text-center">
                    <button type="submit" class="btn btn-default">Submit</button>
                </div>
            </form>
        </div>
    </div>
</div>
</body>
</html>